package com.person.jiaiplan.service.impl;

import com.person.jiaiplan.service.ClocklogsService;
import com.person.jiaiplan.service.ScheduleCommonAppService;
import com.person.jiaiplan.service.ScheduleLogsService;
import com.person.jiaiplan.service.SchedulePlanLogsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ScheduleCommonAppServiceImpl implements ScheduleCommonAppService {

    @Autowired
    private ScheduleLogsService scheduleLogsService;

    @Autowired
    private SchedulePlanLogsService schedulePlanLogsService;

    @Autowired
    private ClocklogsService clocklogsService;

    @Override
    public Boolean deletePlan(Long scheduleId) {

        scheduleLogsService.deletePlan(scheduleId);
        schedulePlanLogsService.removeByScheduleId(scheduleId);
        clocklogsService.removeByScheduleId(scheduleId);
        return true;

    }
}
